/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_app_attachment.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_APP_ATTACHMENT
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_app_attachment.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h" 

CTable_PPM_APP_ATTACHMENT::CTable_PPM_APP_ATTACHMENT( )
 :NPCRecordSet( )
{
  setTableName( "PPM_APP_ATTACHMENT" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_CHAR, 20, 1 );
  makeTableItem( ID );
  makeKeyItem( ID );
  NAME.setField( "NAME", DATA_CHAR, 250, 0 );
  makeTableItem( NAME );
  FULL_PATH.setField( "FULL_PATH", DATA_CHAR, 1000, 0 );
  makeTableItem( FULL_PATH );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  PROC_ID.setField( "PROC_ID", DATA_CHAR, 20, 0 );
  makeTableItem( PROC_ID );
  STAFF_ID.setField( "STAFF_ID", DATA_CHAR, 20, 0 );
  makeTableItem( STAFF_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}


CTable_PPM_APP_ATTACHMENT::CTable_PPM_APP_ATTACHMENT( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_APP_ATTACHMENT" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_CHAR, 20, 1 );
  makeTableItem( ID );
  makeKeyItem( ID );
  NAME.setField( "NAME", DATA_CHAR, 250, 0 );
  makeTableItem( NAME );
  FULL_PATH.setField( "FULL_PATH", DATA_CHAR, 1000, 0 );
  makeTableItem( FULL_PATH );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  PROC_ID.setField( "PROC_ID", DATA_CHAR, 20, 0 );
  makeTableItem( PROC_ID );
  STAFF_ID.setField( "STAFF_ID", DATA_CHAR, 20, 0 );
  makeTableItem( STAFF_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}

CTable_PPM_APP_ATTACHMENT::~CTable_PPM_APP_ATTACHMENT( )
{
    close();
}

